#include <stdio.h>
#include <string.h>

int main()
{
    FILE* fp = fopen("test.txt","w");
    if(fp == NULL)
    {
        perror("fopen failed");
        return 1;
    }
    const char* str = "i am yui~\n";
    int len = strlen(str);
    int num = 5;
    while(num--)
    {
        fwrite(str,len,1,fp);
    }
    fclose(fp);
    return 0;
}
